<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/axios@1.4.0/dist/axios.min.js"></script>
</head>
<body>

<button onclick="">连接</button>
<div></div>
</body>
<script type="text/javascript">

  const token = 'csmht';
  const hose = 'http://localhost:8080';
  const geturl = '/todo';

  function getCookie(name) {
    axios.get(hose + geturl + '/12',{
      headers: {
        'token': token
      }
    }).then(function (response) {
      if(response.data.code === 1){
         console.log(response.data);
      }
    })

  }



</script>

</html>